8 while (1 == scanf("%d",&ram
[i
++])){}
16 else if (a
== 3) r
[b
] = (r
[b
]+c
)%1000;
17 else if (a
== 4) r
[b
] = (r
[b
]*c
)%1000;
18 else if (a
== 5) r
[b
] = r
[c
];
19 else if (a
== 6) r
[b
] = (r
[b
]+r
[c
])%1000;
20 else if (a
== 7) r
[b
] = (r
[b
]*r
[c
])%1000;
21 else if (a
== 8) r
[b
] = ram
[r
[c
]];
22 else if (a
== 9) ram
[r
[c
]] = r
[b
];
23 else if (a
== 0 && r
[c
] !=0) ip
= r
[b
];